package com.aaa.log;

import org.apache.ibatis.logging.Log;
import lombok.extern.slf4j.Slf4j;

//mybatis日志输出是控制台级别的 写一个 换成日志打印
@Slf4j
public class StdOutImpl implements Log {

    public StdOutImpl(String clazz) {
    }
    @Override
    public boolean isDebugEnabled() {
        return false;
    }

    @Override
    public boolean isTraceEnabled() {
        return false;
    }

    @Override
    public void error(String s, Throwable e) {
        log.info(s);
        e.printStackTrace(System.err);
    }

    @Override
    public void error(String s) {
        log.info(s);
    }

    @Override
    public void debug(String s) {
        log.info(s);

    }

    @Override
    public void trace(String s) {
        log.info(s);

    }

    @Override
    public void warn(String s) {
        log.info(s);

    }
}
